package com.hoho.service;

import com.hoho.spring.Autowired;
import com.hoho.spring.BeanNameAware;
import com.hoho.spring.Component;

/**
 * 业务测试类：UseService
 */
@Component("userService")
public class UserService implements BeanNameAware {

    private String beanName;

    @Autowired
    private OrderService orderService;

    public void test(){
        System.out.println(orderService);
        System.out.println("userService.test()");
        System.out.println("beanName = " + beanName);
    }

    @Override
    public void setBeanName(String name) {
        this.beanName = name;
    }
}
